package com.wn.pojo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

public class NurseRecord {
    private Integer id;

    @NotNull(message = "护理对象不能为空")
    private Integer patientId;

    @NotBlank(message = "护理类型不能为空")
    private String type;

    @NotBlank(message = "护理详情不能为空")
    private String detail;

    private Integer nurseId;

    @NotNull(message = "经治医生不能为空")
    private Integer doctorId;

    private Date time;

    private Integer isDeleted;

    public NurseRecord(Integer id, Integer patientId, String type, String detail, Integer nurseId, Integer doctorId, Date time, Integer isDeleted) {
        this.id = id;
        this.patientId = patientId;
        this.type = type;
        this.detail = detail;
        this.nurseId = nurseId;
        this.doctorId = doctorId;
        this.time = time;
        this.isDeleted = isDeleted;
    }

    public NurseRecord() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail == null ? null : detail.trim();
    }

    public Integer getNurseId() {
        return nurseId;
    }

    public void setNurseId(Integer nurseId) {
        this.nurseId = nurseId;
    }

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }
}